﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/Vista/MasterPage.Master" AutoEventWireup="true" CodeBehind="GestionEvento.aspx.cs" Inherits="ApuestasJMG.GUI.Vista.GestionEvento" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 144px;
        }
        .style2
        {
            width: 141px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<table style="margin:1px 0px 1px 1px">
       <tr><td colspan=2><a style=" padding-left:90px">Gestor Eventos</a></td></tr>
        
        <tr>
            <td><a style=" padding-left:15px; padding-right:15px">Tipo de Evento</a></td>
            <td class="style2" id="1" style="padding-top:10px">
                                 
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged" >
                </asp:DropDownList>
            </td>
        </tr>

        <tr>
        
        <td><a style=" padding-left:20px; padding-right:20px">Fecha Inicio</a></td>
        <td class="style2" style="padding-top:5px">
        
            <asp:TextBox ID="TextBox2" runat="server" ontextchanged="TextBox2_TextChanged"></asp:TextBox>
            
            <asp:CalendarExtender ID="CalendarExtender1" runat="server" PopupPosition="Right" TargetControlID="TextBox2"  CssClass="ClassName"
    Format="dd/MM/yyyy">
            </asp:CalendarExtender>
         
            
            
            </td></tr>

         <tr>
        
        <td><a style=" padding-left:20px; padding-right:20px">Fecha Fin</a></td>
        <td class="style2" style="padding-top:10px">
        <asp:TextBox ID="TextBox7" runat="server" ontextchanged="TextBox7_TextChanged"></asp:TextBox>
        
            <asp:CalendarExtender ID="CalendarExtender2" runat="server" PopupPosition="Right" TargetControlID="TextBox7"  CssClass="ClassName"
    Format="dd/MM/yyyy">
            </asp:CalendarExtender>
         
            
            
            
         
            
            
            </td></tr>

        <tr>
        
        <td><a style=" padding-left:20px; padding-right:20px">Hora</a></td>
        <td class="style2" style="padding-top:10px">
        
            

            <asp:TextBox ID="TextBox3" runat="server" MaxLength="2" ontextchanged="TextBox3_TextChanged" FilterType="Numbers"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TextBox3_FilteredTextBoxExtender"  FilterType="Numbers"   
             
                runat="server" Enabled="True" TargetControlID="TextBox3">
            </asp:FilteredTextBoxExtender>
            

            </td></tr>

               <tr>
        
        <td><a style=" padding-left:20px; padding-right:20px">Minuto</a></td>
        <td class="style2" style="padding-top:10px">

            <asp:TextBox ID="TextBox4" runat="server" MaxLength="2" ontextchanged="TextBox4_TextChanged"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="TextBox4_FilteredTextBoxExtender1" FilterType="Numbers"
                runat="server" Enabled="True" TargetControlID="TextBox4">
            </asp:FilteredTextBoxExtender>

            </td></tr>
            
            <br />


            <tr>
            <td  colspan="2" class="style1" style="padding-top:10px">
        
              
        
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    Width="418px" EnableViewState="false" AllowPaging="True" PageSize="5" ShowFooter="False" DataKeyNames ="IdParticipante" OnPageIndexChanging="GridView1_PageIndexChanging" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" 
                    style="margin-bottom: 0px">
               
                <Columns>
                      <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:CheckBox ID="CheckBox1" Text="Seleccionar Todo" AutoPostBack="true" runat="server" OnCheckedChanged="SelectAll" />
                                </HeaderTemplate>
                                
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server"/>
                                </ItemTemplate>    
                            </asp:TemplateField>
                            <asp:BoundField DataField="IdParticipante" HeaderText="Identificador" 
                            SortExpression="IdParticipante"  />
                            <asp:BoundField DataField="NombreParticipante" HeaderText="Nombre Participante" 
                            SortExpression="NombreParticipante"  />
                                                              
                                 <asp:TemplateField HeaderText="Tope Apuesta" SortExpression="Tope">

<EditItemTemplate>

<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Tope") %>'></asp:TextBox>

</EditItemTemplate>

<ItemStyle HorizontalAlign="Center" />

<ItemTemplate>

&nbsp;<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Tope") %>' Width="41px"></asp:TextBox>

</ItemTemplate>

</asp:TemplateField>



                
                                 <asp:TemplateField HeaderText="Relacion Pago" SortExpression="Relacion">

<EditItemTemplate>

<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Relacion") %>'></asp:TextBox>

</EditItemTemplate>

<ItemStyle HorizontalAlign="Center" />

<ItemTemplate>

&nbsp;<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Relacion") %>' Width="41px"></asp:TextBox>

</ItemTemplate>

</asp:TemplateField>

                            
                      </Columns> 
               
               
                </asp:GridView>
        
              
        
            </tr>



        <tr><td style=" padding-left:130px; padding-top:10px">
            
            
            <asp:Button ID="Button1" runat="server" Text="Aceptar" 
                onclick="Button1_Click" />
            
            
            </td>
            
            <td style=" padding-center:130px; padding-top:10px" class="style2">
            
            
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Volver" />
            
            
            </td>
            </tr>
        
    </table>




</asp:Content>
